﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Class1 cc = new Class1();
            Console.WriteLine("整数和为：{0}",cc.Shu(2,5));
            Console.WriteLine("小数和为：{0}",cc.Shu(2.5,5.5));
            Console.WriteLine("字符串和为：{0}",cc.Shu("f","d"));
            Console.WriteLine("请输入一个数");
            int num = int.Parse(Console.ReadLine());
            Console.WriteLine("从1到{0}的和为：{1}",num,cc.Shu(num));
        }
    }
}
